const getters = {
  // 快速访问
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // vuex里面的state里面的userInfo（个人信息）
  userId: state => state.user.userInfo.userId,
  name: state => state.user.userInfo.username, // 建立用户名称的映射
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像快捷访问
  routes: state => state.permission.routes // 当前用户的所有路由
}
export default getters
